package com.njupt.sellsec.service;

import com.njupt.sellsec.domain.Goods;
import com.njupt.sellsec.domain.OrderInfo;
import com.njupt.sellsec.domain.SellUser;
import com.njupt.sellsec.vo.GoodsFormVO;

import java.awt.image.BufferedImage;
import java.util.List;

/**
 * @Author: XJL
 * @Description:
 * @Date: Create in 17:14 2018/7/29
 * @Modified By:
 **/
public interface SecSellService {

    OrderInfo secSell(SellUser user, GoodsFormVO goods);

    long getSecSellResult(long userId, long goodsId);

    void reset(List<GoodsFormVO> goodsFormVOList);

    boolean check(String path, SellUser user, long goodsId);

    BufferedImage createVerifyCode(SellUser user, long goodsId);

    boolean checkVerifyCode(SellUser user, long goodsId, int verifyCode);
}
